package
{
	import flash.display.Shape;

	public class Arrow extends Shape
	{
		private var _radius:Number;
		private var _color:uint;
		
		public function Arrow(radius:Number = 1, color:uint = 0xFFFFFF)
		{
			_radius = radius;
			_color = color;
			draw();
		}
		public function set color(value:Number):void
		{
			_color = value;
			draw();
		}
		private function draw():void
		{
			graphics.clear();
			graphics.beginFill( _color );
			
			graphics.moveTo(_radius *1.5, 0);
			
			graphics.lineTo(-_radius*.7, _radius*.7);
			graphics.lineTo(-_radius * .4, 0);
			
			graphics.lineTo(-_radius*.7, -_radius*.7);
			graphics.moveTo(_radius, 0);
			
			graphics.endFill();
		}
	}
}
